Hello |
Re: Lookinf for useWindows for Views ..
The call sets the useWindows on or off. You then need to save the view definition.
ViewDef v = get(view "amg")
bool b = useWindows(v)
print("remember window size and position = " b "\n")
useWindows(v, !b)
b = useWindows(v)
print("remember window size and position = " b "\n")
save(view "amg", v)
|
Re: Lookinf for useWindows for Views .. Tony_Goodman - Tue Feb 26 05:06:45 EST 2013
The call sets the useWindows on or off. You then need to save the view definition.
ViewDef v = get(view "amg")
bool b = useWindows(v)
print("remember window size and position = " b "\n")
useWindows(v, !b)
b = useWindows(v)
print("remember window size and position = " b "\n")
save(view "amg", v)
Thanks but my problem is something different: If I want to save a view from the menue directly (without dxl) I've the tabs "General" and "Advanced". On General I've the checkbox "Window size and position". And "useWindows()" enables or disables this dialog box. But I want to enable it and set it on true. And this I want to do with dxl. Best regards Wolfgang |
Re: Lookinf for useWindows for Views .. SystemAdmin - Wed Feb 27 02:41:27 EST 2013 When you select the Manage Views menu option and select a view, the Window size and position option will NOT be available if it was originally unchecked. It is greyed out because the view may not be visible, so the size and position is unknown. If the window size and position box was originally checked then the option to turn it off is available. Doing so renders the option greyed out. Tony Goodman, www.smartdxl.com |
Re: Lookinf for useWindows for Views .. Tony_Goodman - Wed Feb 27 09:26:39 EST 2013 |
Re: Lookinf for useWindows for Views .. llandale - Wed Feb 27 15:04:45 EST 2013 Paul Miller, Melbourne, Australia |
Re: Lookinf for useWindows for Views .. SystemAdmin - Wed Feb 27 15:51:56 EST 2013 Paul Miller, Melbourne, Australia Well, a reason to change it is because it was not working well, but you'd think several of us would have noticed that turning on an option (such as remember Filtering) didn't actually do anything ... or took the CURRENT view settings and remembered that. -Louie On the other hand, if it DID remember the current view settings for that feature, then it would work the same way as if you loaded the view and save-as, setting the setting; since loading the view would not change the setting because the view ignores it. I think the answer to many of these "why" questions is the same answer to: "Why do dogs circle before business?" It's because they want to. |
Re: Lookinf for useWindows for Views .. llandale - Wed Feb 27 15:04:45 EST 2013 > You know, it never occurred to me the off options cannot be turned on in the Manage dialog because the information isn't available. Doh! You need to load the view, save-as, and turn it on that way. It's another chapter of the doors voodoo, not for the programmer, but for the user. |